<template>
	<view class="container">
		<view class="head">
			<u-icon @click="returnButton()" name="arrow-left" color="#fff" size="30"></u-icon>
			<u-text text="附近门店" color="#fff" size="22" align="center" margin="4vh 0px 0px 0px"></u-text>
			<view class="search">
				<view class="info">
					<input placeholder="请输入要搜索内容" />
					<image src="@/static/images/ls/搜索@3x.png"></image>
				</view>
				<view class="record">
					<text class="title">历史记录：</text>
					<text class="item">飞飞汽修美容店</text>
				</view>
			</view>
		</view>
		<view class="head-2">
		</view>

		<view class="content" @click="near_btn">
			<view class="line1">
				<view>
					车百事汽车生活馆
				</view>
				<view>
					556m
				</view>
			</view>
			<view style="display: flex;margin-top: 1vh;">
				<uni-rate :readonly="true" size="20" :value="4" />
				<view style="margin-left: 5vw;">销量：556</view>
			</view>
			<view class="line2">
				<view class="lineright">
					<image src="@/static/images/ls/服务站.jpg" style="height: 12vh;width: 28vw; border-radius: 15rpx;">
					</image>
				</view>
				<view class="lineleft">

					<view>
						营业时间：周一到周五
					</view>
					<view>
						早上8:00-晚上22:00
					</view>
					<view>
						位置：山阳区人民路与解放路交叉口
					</view>
				</view>
			</view>

		</view>
		<view class="content">
			<view class="line1">
				<view>
					车百事汽车生活馆
				</view>
				<view>
					556m
				</view>
			</view>
			<view style="display: flex;margin-top: 1vh;">
				<uni-rate :readonly="true" size="20" :value="4" />
				<view style="margin-left: 5vw;">销量：556</view>
			</view>
			<view class="line2">
				<view class="lineright">
					<image src="@/static/images/ls/服务站.jpg" style="height: 12vh;width: 28vw; border-radius: 15rpx;">
					</image>
				</view>
				<view class="lineleft">

					<view>
						营业时间：周一到周五
					</view>
					<view>
						早上8:00-晚上22:00
					</view>
					<view>
						位置：山阳区人民路与解放路交叉口
					</view>
				</view>
			</view>

		</view>
		<view class="content">
			<view class="line1">
				<view>
					车百事汽车生活馆
				</view>
				<view>
					556m
				</view>
			</view>
			<view style="display: flex;margin-top: 1vh;">
				<uni-rate :readonly="true" size="20" :value="4" />
				<view style="margin-left: 5vw;">销量：556</view>
			</view>
			<view class="line2">
				<view class="lineright">
					<image src="@/static/images/ls/服务站.jpg" style="height: 12vh;width: 28vw; border-radius: 15rpx;">
					</image>
				</view>
				<view class="lineleft">

					<view>
						营业时间：周一到周五
					</view>
					<view>
						早上8:00-晚上22:00
					</view>
					<view>
						位置：山阳区人民路与解放路交叉口
					</view>
				</view>
			</view>

		</view>
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			returnButton() {
				uni.$u.route('/pages/ls/carMaintenance/carMaintenance');
			},
			near_btn() {
				uni.$u.route('/pages/ls/carWash/carWash');
			}
		}
	}
</script>

<style lang="scss">
	.search {
		// background-color: rebeccapurple;
		width: 100%;
		height: 10vh;
		position: fixed;
		top: 11vh;
		box-sizing: border-box;
		padding: 0rpx 25rpx;

		.record {
			box-sizing: border-box;
			padding: 0rpx 25rpx;

			.title {
				color: white;
				font-size: 35rpx;
				line-height: 60rpx;
			}

			.item {
				color: white;
			}
		}


		.info {
			background-color: #f7f7f7;
			width: 100%;
			height: 7vh;
			border-radius: 50rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			box-sizing: border-box;
			padding: 0 30rpx;

			image {
				height: 6vw;
				width: 6vw;
			}
		}
	}

	.content {
		height: 30vh;
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		padding: 30rpx 25rpx;
		background-color: white;
		width: 90vw;
		margin: 0 auto;
		margin-bottom: 2vh;
		transform: translateY(27vh);
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
		border-radius: 16rpx;

		.title {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 2vh;
		}

		.title>text:nth-child(1) {
			font-size: 18px;
			font-weight: 600;
		}

		.title>text:nth-child(2) {
			font-size: 13px;
			color: #3183FB;
		}

	}

	.head-2 {
		position: absolute;
		background-color: #3183FB;
		width: 100%;
		height: 32vh;
		overflow: auto;
		z-index: 0;
	}

	.head {
		position: fixed;
		background-color: #3183FB;
		width: 100%;
		height: 27vh;
		overflow: auto;
		z-index: 3;

		.u-icon {
			position: fixed;
			top: 4vh;
		}
	}


	.line1 {
		margin-top: 2vh;
		display: flex;
		justify-content: space-between;
	}

	.line1 :nth-child(1) {
		font-size: 3vh;
		font-weight: 600;
	}

	.line1 :nth-child(2) {
		color: #2F81FA;
	}

	.lineright {
		padding-top: 1vh;
		/* padding-left: 2vw; */
		box-sizing: border-box;
	}

	.line2 {
		display: flex;
	}

	.lineleft {
		margin-left: 2vw;
		margin-top: 1vh;
		text-align: left;
		font-size: 25rpx;
		line-height: 50rpx;
	}
</style>